import Vue from 'vue'
import Router from 'vue-router'
import vue02 from '@/components/vue02'
import vueAdd from '@/components/vueAdd'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import VueAxios from 'vue-axios'


Vue.use(Router)
Vue.use(ElementUI);
Vue.use(VueAxios, axios);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'vue02',
      component: vue02
    },
    {
      path: '/vueAdd',
      name: 'vueAdd',
      component: vueAdd
    },
    {
      path: '/vue02',
      name: 'vue02',
      component: vue02
    }
  ]
})
